'use strict';

/**
 * @param {Egg.Application} app - egg application
/**
 *
 *
 * @param {*} app
 */
module.exports = app => {
  const { router, controller, ctx } = app;

  router.get('/add', controller.home.add)
  router.get('/get', controller.home.get)
  router.get('/updata', controller.home.updata)
  router.get('/getInfo', controller.home.getInfo)
  router.get('/goodsclassifylist', controller.class.get)
  router.get('/goodsclassifyadd', controller.class.add)
  router.get('/updataClass', controller.class.updata)
  router.get('/getClassInfo', controller.class.getInfo)
  router.post('/api/mall/sellerVip/list', controller.sellerVip.getlist)

  require('./router/user')(app);
  require('./router/admin')(app);

};
